home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v8n13.arc / CONVERT.DOC < prev    next >
Text File  |  1989-06-10  |  2KB  |  49 lines

  1.  
  2. CONVERT.COM
  3. Command
  4.  
  5. Michael Mefford
  6. July, 1989 (Utilities)
  7.  
  8.  
  9. Purpose:    Simultaneously displays ASCII codes or whole numbers between 0
  10. and 65,535 in their hexadecimal, decimal, octal, and binary equivalents;
  11. especially useful in translating printer, modem, or EGA monitor Escape sequences
  12. and set-up strings from one number base to another.
  13.  
  14. Format:    CONVERT number[-number][base] | "character(s)"
  15.  
  16. Remarks:    Either a single number or a number-number range may be input to
  17. CONVERT for multiple number base display.  Decimal input is assumed unless
  18. otherwise indicated by adding b (binary), o (octal), or h (hexadecimal) to the
  19. number(s).  An ASCII code to be converted must be placed within double quotes. 
  20. Control codes (e.g. Ctrl-A) may be entered normally at the keyboard (within
  21. double quotes) with the exception of the Escape character.  To display the
  22. equivalents (including the ASCII left-arrow graphic) of the Escape character,
  23. enter CONVERT 27.
  24.  
  25.     When large numbers are converted, the 2-byte sequence displayed within
  26. quotes in the right-hand column as the ASCII "equivalent" should not be used in
  27. translating set-up strings.  It represents the individual byte values, not the
  28. value of the combination.  Note, too, that in this display, decimal 0 (null), 32
  29. (space), and 255 (blank) all appear as blanks.
  30.  
  31.     The output from CONVERT may be redirected to a printer or to file, so
  32. that a multi-line table of values may be created.  When redirection is used,
  33. however, the ASCII equivalent normally shown in the right-hand column is
  34. dropped.
  35.  
  36.     Available for downloading from PC MagNet (see the CONVERT by Modem
  37. sidebar in the main article), CONVERT.COM is already compiled and ready to run. 
  38. As an alternative, CONVERT.COM can be created from either of two program files
  39. that are printed in the article and are also available for downloading from PC
  40. MagNet.  CONVERT.BAS will automatically create CONVERT.COM when run once in
  41. BASIC.  To create CONVERT.COM from the CONVERT.ASM source code requires use of a
  42. macro assembler (IBM or Microsoft, Version 2 or later) and the following
  43. commands:
  44.  
  45. MASM CONVERT;
  46. LINK CONVERT;
  47. EXE2BIN CONVERT CONVERT.COM;
  48.  
  49. «MDNM»